<?PHP
include("../../interface/util/db/DBUtil.php");
$userId=$_REQUEST["userId"];
$sAction=$_REQUEST["sAction"];
$conn=getConnection(); 
$strUpdate="";
if($sAction=="addUserLevel"){
  $strUpdate="update op_user set level=level+1 where level<>9 and user_id='".$userId."'";
}elseif($sAction=="minusUserLevel"){
  $strUpdate="update op_user set level=level-1 where level<>1 and user_id='".$userId."'";
}elseif($sAction=="enabledUser"){
  $strUpdate="update op_user set disabled='Y' where user_id='".$userId."'";
}elseif($sAction=="diabledUser"){
  $strUpdate="update op_user set disabled='N' where user_id='".$userId."'";
}
$result = mysql_query($strUpdate) or die(mysql_error());
mysql_close($link);
header("Location: ../sub/authenticator.php");
?>